package cz.cvut.fel.riak.email;

public class MIMEStatus {
	private String boundary;
	private boolean extract = false;
	private String contentType;
	
	public MIMEStatus(String contentType, String boundary, boolean extract) {
		super();
		this.contentType = contentType;
		this.boundary = boundary;
		this.extract = extract;
	}
	/**
	 * @return the boundary
	 */
	public String getBoundary() {
		return boundary;
	}
	/**
	 * @param boundary the boundary to set
	 */
	public void setBoundary(String boundary) {
		this.boundary = boundary;
	}
	/**
	 * @return the extract
	 */
	public boolean isExtract() {
		return extract;
	}
	/**
	 * @param extract the extract to set
	 */
	public void setExtract(boolean extract) {
		this.extract = extract;
	}
	/**
	 * @return the contentType
	 */
	public String getContentType() {
		return contentType;
	}
	/**
	 * @param contentType the contentType to set
	 */
	public void setContentType(String contentType) {
		this.contentType = contentType;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "MIMEStatus [boundary=" + boundary + ", extract=" + extract
				+ ", contentType(shorten)=" + (contentType != null ? contentType.substring(0,Math.min(contentType.length(), 20)) : null) + "]";
	}
	
	
}
